#ifndef HEALTHPAGEPRESENTER_HPP
#define HEALTHPAGEPRESENTER_HPP

#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>

using namespace touchgfx;

class HealthPageView;

class HealthPagePresenter : public touchgfx::Presenter, public ModelListener
{
public:
    HealthPagePresenter(HealthPageView& v);

    /**
     * The activate function is called automatically when this screen is "switched in"
     * (ie. made active). Initialization logic can be placed here.
     */
    virtual void activate();

    /**
     * The deactivate function is called automatically when this screen is "switched out"
     * (ie. made inactive). Teardown functionality can be placed here.
     */
    virtual void deactivate();

    virtual ~HealthPagePresenter() {};
		//健康监测信息上传
		virtual void updateHeartRateInfo(uint32_t newHeartRate, uint32_t newSPO2);
		//HealthPageView的状态
		void HealthPageViewTask(bool enable);
		//物理按键的页面跳转
		virtual void HealthPageChange(uint8_t newFiveKeyFunc);
private:
    HealthPagePresenter();

    HealthPageView& view;
};

#endif // HEALTHPAGEPRESENTER_HPP
